home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / public / fax / src / port / svr4 / utmp.h < prev   
C/C++ Source or Header  |  1994-08-01  |  805b  |  41 lines

  1. #ifndef _PORT_SVR4_UTMP_H
  2. #define _PORT_SVR4_UTMP_H
  3.  
  4. #ifdef __cplusplus
  5. extern "C" {
  6.  
  7. #ifndef sun
  8. /* workaround SVR4.0.3 header braindamage */
  9. struct exit_status {
  10.         short e_termination;    /* Process termination status */
  11.         short e_exit;           /* Process exit status */
  12. };
  13. #endif /* !sun */
  14.  
  15. #endif /* __cplusplus */
  16.  
  17. #ifdef __GNUC__
  18. #include_next <utmp.h>
  19. #include_next <utmpx.h>
  20. #else
  21. #include "/usr/include/utmp.h"
  22. #include "/usr/include/utmpx.h"
  23. #endif
  24.  
  25. #ifdef __cplusplus
  26. }
  27. #endif
  28.  
  29. #define utmp          utmpx
  30. #undef  ut_time
  31. #define ut_time       ut_xtime
  32.  
  33. #define getutent      getutxent
  34. #define getutid       getutxid
  35. #define getutline     getutxline
  36. #define pututline     pututxline
  37. #define setutent      setutxent
  38. #define endutent      endutxent
  39.  
  40. #endif /* _PORT_SVR4_UTMP_H */
  41.